package com.zuo.demo01.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class BlogTagRelation {

    private Integer id;
    private Blog blog;
    private Tag tag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @Override
    public String toString() {
        return "BlogTagRelation{" +
                "id=" + id +
                ", blog=" + blog +
                ", tag=" + tag +
                ", createTime=" + createTime +
                '}';
    }

    public BlogTagRelation() {
    }

    public BlogTagRelation(Integer id, Blog blog, Tag tag, Date createTime) {
        this.id = id;
        this.blog = blog;
        this.tag = tag;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Blog getBlog() {
        return blog;
    }

    public void setBlog(Blog blog) {
        this.blog = blog;
    }

    public Tag getTag() {
        return tag;
    }

    public void setTag(Tag tag) {
        this.tag = tag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
